Automatic Audit Logging of Events in Software Applications Performing Regulatory Workloads

ABSTRACT

Automatically generating audit logs is provided. Audit log statement insertion points are identified in software components of an application based on a static code analysis identifying start and end operations on sensitive data in the software components of the application. The application is instrumented with audit log statements at the audit log statement insertion points in the software components of the application. Audit logs of monitored sensitive data activity events in the application are generated using the audit log statements at the audit log statement insertion points in the software components of the application. A dynamic code analysis is performed on the application during execution of the application to prevent executing source code of the application from recording in the audit logs the sensitive data processed by the application.

BACKGROUND 1. Field

The disclosure relates generally to automatically generating audit logsin software applications and more specifically to automaticallygenerating audit logs of monitored sensitive data activity events insoftware applications that perform workloads corresponding to regulatedservices.

2. Description of the Related Art

An audit log is a record of monitored events in an informationtechnology system. A monitored event is an identifiable occurrence thathas significance for hardware and/or software components of theinformation technology system. An audit log may record what resourceswere accessed, destination and source addresses, and the like.

Federal Regulations, such as, for example, the Health InsurancePortability and Accountability Act (HIPAA) and the Gram-Leach-BlileyAct, include specific mandates regarding audit logs. For example, HIPAAprovides data privacy and security provisions for safeguarding sensitivemedical information of individuals. The Gram-Leach-Bliley Act controlsthe way financial institutions may use sensitive private information ofindividuals. As a result, information technology systems that processsensitive information related to individuals must generate audit logsshowing compliance with the federal regulations.

However, current information technology systems that process these typesof sensitive information, which may be regulated by federal, state,and/or local laws, do not automatically generate audit logs for eachuser access request to these types of sensitive information to determineexactly where sensitive information was accessed in a softwareapplication performing a workload corresponding to a regulated service,what sensitive information was accessed, who accessed the sensitiveinformation, and when the sensitive information was accessed.

SUMMARY

According to one illustrative embodiment, a computer-implemented methodfor automatically generating audit logs is provided. A computeridentifies audit log statement insertion points in software componentsof an application based on a static code analysis identifying start andend operations on sensitive data in the software components of theapplication. The computer instruments the application with audit logstatements at the audit log statement insertion points in the softwarecomponents of the application. The computer generates audit logs ofmonitored sensitive data activity events in the application using theaudit log statements at the audit log statement insertion points in thesoftware components of the application. The computer performs a dynamiccode analysis on the application during execution of the application toprevent executing source code of the application from recording in theaudit logs the sensitive data processed by the application. According toother illustrative embodiments, a computer system and computer programproduct for automatically generating audit logs are provided.

Current approaches to placing audit log statements in applications orprograms require manual insertion by the software developers who oftenlack knowledge of auditing regulations or security best practices. Mostsoftware developers write audit log statements as a means for debuggingan application, which do not provide the regulation required level ofinformation for auditing purposes. By illustrative embodimentsidentifying locations in applications where sensitive data is processed,illustrative embodiments are able to automate the audit log statementplacement process. As a result, software developers only need tocomplete the audit log statements for logging sensitive data activity byincluding domain-specific information. Inventors are not aware of anycompeting approaches, besides manual placement, for generating suchaudit logs.

In addition, the computer performs a dynamic code analysis on theapplication during execution of the application to prevent executingsource code of the application from recording in the audit logs thesensitive data processed by the application. The computer analyzes theaudit logs for compliance with audit requirements. Further, the computerperforms an action step regarding non-compliance of the audit logs withthe audit requirements.

The computer receives the application with labeled sensitive data andingestion points within the application. The application performs aregulated service via a network. The computer identifies hardwarecomponents of a system hosting the regulated service and the softwarecomponents of the application that are authorized to access thesensitive data located at the labeled sensitive data and ingestionpoints within the application. The computer performs a taint analysis onworkflows tracking the sensitive data through the hardware componentsand the software components authorized to access the sensitive data. Thecomputer determines input and output sensitive data flow points for thesoftware components of the application based on the taint analysis onthe workflows tracking the sensitive data. The computer generates a dataflow graph and a control flow graph for the application based on theinput and output sensitive data flow points for the software componentsof the application. The computer performs a static code analysis on theapplication to generate use-definition chains identifying start and endoperations on the sensitive data in the software components of theapplication using the data flow graph and the control flow graph of theapplication.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a pictorial representation of a network of data processingsystems in which illustrative embodiments may be implemented;

FIG. 2 is a diagram of a data processing system in which illustrativeembodiments may be implemented;

FIG. 3 is a diagram illustrating a cloud computing environment in whichillustrative embodiments may be implemented;

FIG. 4 is a diagram illustrating an example of abstraction layers of acloud computing environment in accordance with an illustrativeembodiment;

FIG. 5 is a diagram of an example audit log manager in accordance withan illustrative embodiment;

FIGS. 6A-6B are a flowchart illustrating a process for generating auditlogs of monitored sensitive data activity events in accordance with anillustrative embodiment;

FIG. 7 is a flowchart illustrating a process for identifying sensitivedata input and output operations in an application performing aregulated service in accordance with an alternative illustrativeembodiment;

FIGS. 8A-8B are a flowchart illustrating a process for inserting auditlog statements in accordance with an alternative illustrativeembodiment; and

FIG. 9 is a flowchart illustrating a process for monitoring sensitivedata input and output events in cryptographic functions in accordancewith an alternative illustrative embodiment.

DETAILED DESCRIPTION

The present invention may be a system, a method, and/or a computerprogram product. The computer program product may include a computerreadable storage medium (or media) having computer readable programinstructions thereon for causing a processor to carry out aspects of thepresent invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including an objectoriented programming language such as Smalltalk, C++ or the like, andconventional procedural programming languages, such as the “C”programming language or similar programming languages. The computerreadable program instructions may execute entirely on the user'scomputer, partly on the user's computer, as a stand-alone softwarepackage, partly on the user's computer and partly on a remote computeror entirely on the remote computer or server. In the latter scenario,the remote computer may be connected to the user's computer through anytype of network, including a local area network (LAN) or a wide areanetwork (WAN), or the connection may be made to an external computer(for example, through the Internet using an Internet Service Provider).In some embodiments, electronic circuitry including, for example,programmable logic circuitry, field-programmable gate arrays (FPGA), orprogrammable logic arrays (PLA) may execute the computer readableprogram instructions by utilizing state information of the computerreadable program instructions to personalize the electronic circuitry,in order to perform aspects of the present invention.

Aspects of the present invention are described below with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems) and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer program instructions may be provided to a processor of ageneral purpose computer, special purpose computer, or otherprogrammable data processing apparatus to produce a machine, such thatthe instructions, which execute via the processor of the computer orother programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer program instructions may also bestored in a computer readable medium that can direct a computer, otherprogrammable data processing apparatus, or other devices to function ina particular manner, such that the instructions stored in the computerreadable medium produce an article of manufacture including instructionswhich implement the function/act specified in the flowchart and/or blockdiagram block or blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

With reference now to the figures, and in particular, with reference toFIGS. 1-5, diagrams of data processing environments are provided inwhich illustrative embodiments may be implemented. It should beappreciated that FIGS. 1-5 are only meant as examples and are notintended to assert or imply any limitation with regard to theenvironments in which different embodiments may be implemented. Manymodifications to the depicted environments may be made.

FIG. 1 depicts a pictorial representation of a network of dataprocessing systems in which illustrative embodiments may be implemented.Network data processing system 100 is a network of computers, dataprocessing systems, and other devices in which the illustrativeembodiments may be implemented. Network data processing system 100contains network 102, which is the medium used to provide communicationslinks between the computers, data processing systems, and other devicesconnected together within network data processing system 100. Network102 may include connections, such as, for example, wire communicationlinks, wireless communication links, and fiber optic cables.

In the depicted example, server 104 and server 106 connect to network102, along with storage 108. Server 104 and server 106 may be, forexample, server computers with high-speed connections to network 102 andmay each represent a set of one or more server computers. In addition,server 104 and server 106 may provide a set of one or more regulatedservices, such as, for example, a service that processes sensitivemedical information or sensitive financial institution informationcorresponding to individuals. A regulated service is a service that isregulated by federal, state, or local regulations or laws. The federal,state, or local regulations may, for example, limit a type and amount ofsensitive personal information that may be accessed, transmitted, ordisclosed by the service, when this sensitive personal information maybe accessed, and who may access this sensitive personal information.Further, in response to detecting sensitive data activity correspondingto the regulated service, server 104 and server 106 may automaticallygenerate audit logs for the sensitive data activity events occurring ina set of one or more software applications that process the sensitivedata corresponding to the regulated service. Furthermore, server 104 andserver 106 may automatically analyze the audit logs for compliance withregulations and perform a set of one or more action steps to mitigaterisk to the sensitive data in response to determining non-compliancewith the regulations.

Client device 110, client device 112, and client device 114 also connectto network 102. Client devices 110, 112, and 114 are clients of server104 and server 106. Server 104 and server 106 may provide information,such as boot files, operating system images, and software applicationsto client devices 110, 112, and 114.

Client devices 110, 112, and 114 may be, for example, computers, such asdesktop computers or network computers with wire or wirelesscommunication links to network 102. However, it should be noted thatclient devices 110, 112, and 114 are intended as examples only. In otherwords, client devices 110, 112, and 114 also may include other devices,such as, for example, laptop computers, handheld computers, smartphones, smart watches, personal digital assistants, or any combinationthereof. Users of client devices 110, 112, and 114 may use clientdevices 110, 112, and 114 to access the set of regulated servicesprovided by server 104 and server 106.

Storage 108 is a network storage device capable of storing any type ofdata in a structured format or an unstructured format. In addition,storage 108 may represent a set of one or more network storage devices.Storage 108 may store, for example, software applications that performworkloads corresponding to regulated services, audit logs correspondingto the software applications, and the like. Further, storage unit 108may store other data, such as authentication or credential data that mayinclude user names, passwords, and biometric data associated with systemadministrators, for example.

In addition, it should be noted that network data processing system 100may include any number of additional server devices, client devices, andother devices not shown. Program code located in network data processingsystem 100 may be stored on a computer readable storage medium anddownloaded to a computer or other data processing device for use. Forexample, program code may be stored on a computer readable storagemedium on server 104 and downloaded to client device 110 over network102 for use on client device 110.

In the depicted example, network data processing system 100 may beimplemented as a number of different types of communication networks,such as, for example, an internet, an intranet, a local area network(LAN), and a wide area network (WAN). FIG. 1 is intended as an example,and not as an architectural limitation for the different illustrativeembodiments.

With reference now to FIG. 2, a diagram of a data processing system isdepicted in accordance with an illustrative embodiment. Data processingsystem 200 is an example of a computer, such as server 104 in FIG. 1, inwhich computer readable program code or program instructionsimplementing processes of illustrative embodiments may be located. Inthis illustrative example, data processing system 200 includescommunications fabric 202, which provides communications betweenprocessor unit 204, memory 206, persistent storage 208, communicationsunit 210, input/output (I/O) unit 212, and display 214.

Processor unit 204 serves to execute instructions for softwareapplications and programs that may be loaded into memory 206. Processorunit 204 may be a set of one or more hardware processor devices or maybe a multi-processor core, depending on the particular implementation.Further, processor unit 204 may be implemented using one or moreheterogeneous processor systems, in which a main processor is presentwith secondary processors on a single chip. As another illustrativeexample, processor unit 204 may be a symmetric multi-processor systemcontaining multiple processors of the same type.

Memory 206 and persistent storage 208 are examples of storage devices216. A computer readable storage device is any piece of hardware that iscapable of storing information, such as, for example, withoutlimitation, data, computer readable program code in functional form,and/or other suitable information either on a transient basis and/or apersistent basis. Further, a computer readable storage device excludes apropagation medium. Memory 206, in these examples, may be, for example,a random access memory, or any other suitable volatile or non-volatilestorage device. Persistent storage 208 may take various forms, dependingon the particular implementation. For example, persistent storage 208may contain one or more devices. For example, persistent storage 208 maybe a hard drive, a flash memory, a rewritable optical disk, a rewritablemagnetic tape, or some combination of the above. The media used bypersistent storage 208 may be removable. For example, a removable harddrive may be used for persistent storage 208.

In this example, persistent storage 208 stores audit log manager 218.Audit log manager 218 generates and monitors audit logs corresponding tosensitive data access activity in an application corresponding to aregulated service. It should be noted that even though audit log manager218 is illustrated as residing in persistent storage 208, in analternative illustrative embodiment audit log manager 218 may be aseparate component of data processing system 200. For example, audit logmanager 218 may be a hardware component coupled to communication fabric202 or a combination of hardware and software components.

Also in this example, persistent storage 208 stores application 220,compliance and audit requirements 222, flow graph 224, control graph226, dependency graph 228, locations of sensitive data 230, audit logstatement insertion points 232, and audit log 234. However, it should benoted that alternative illustrative embodiments may include more or lessdata than illustrated.

Application 220 represents a software application that performsworkloads corresponding to a regulated service. For example, application220 may collect, process, and manage patient information, which isregulated by HIPAA, for an insurance company that processes medicalclaims. Audit log manager 218 may identify software components 236 andlabeled sensitive data 238 in application 220. Software components 236represent a plurality of different software components that comprise asoftware package corresponding to application 220. It should be notedthat in an alternative embodiment, one or more components of softwarecomponents 236 may be distributed remotely in one or more servercomputers connected to a network, such as network 102 in FIG. 1.

Audit log manager 218 also may identify which components in softwarecomponents 236 process sensitive data corresponding to the regulatedservice. Labeled sensitive data 238 represent points or locations inapplication 220 where one or more of software components 236 process orutilize the sensitive data corresponding to the regulated serviceprovided by application 220. It should be noted that labeled sensitivedata 238 also may be data that is read into application 220 as input.Thus, illustrative embodiments may know all data input that issensitive, and by analyzing the data and control flow, illustrativeembodiments may determine when and where sensitive data is processed inapplication 220. A program developer of application 220 may, forexample, previously label the sensitive data points or locations inapplication 220.

Audit log manager 218 may utilize compliance and audit requirements 222to identify the requirements for generating audit logs corresponding tothe regulated service provided by application 220. In addition, auditlog manager 218 may utilize compliance and audit requirements 222 todetermine whether monitored sensitive data activity events, which auditlog manager 218 records within audit logs, performed by one or morecomponents of application 220 are in compliance with a set of one ormore federal, state, or local regulations. Further, audit log manager218 may utilize compliance and audit requirements 222 to determine, forexample, logging points within application 220, frequency of logging,and content of the audit logs.

Audit log manager 218 also may generate data flow graph 224 forapplication 220. Data flow graph 224 identifies the flow of sensitivedata through application 220. Further, audit log manager 218 also maygenerate control graph 226 for application 220. Control graph 226identifies the different paths that sensitive data may traverse throughapplication 220 during execution of application 220. Furthermore, auditlog manager 218 may generate dependency graph 228 for application 220.Dependency graph 228 identifies dependent sensitive data activity eventsamong components within software components 236 of application 220.

Locations of sensitive data 230 represent where sensitive data islocated within application 220. Audit log manager 218 may identifylocations of sensitive data 230 by utilizing, for example, labeledsensitive data 238. Audit log manager 218 may utilize locations ofsensitive data 230 to determine audit log statement insertion points232. Audit log statement insertion points 232 represent locations withinapplication 220 where audit log manager is to insert an audit logstatement for generating an audit log entry for a monitored sensitivedata activity event in a component of application 220. Audit log manager218 may generate audit log 234 from audit log entries generated by auditlog statements inserted within application 220 at audit log statementinsertion points 232.

Communications unit 210, in this example, provides for communicationwith other computers, data processing systems, and devices via anetwork, such as network 102 in FIG. 1. Communications unit 210 mayprovide communications using both physical and wireless communicationslinks. The physical communications link may utilize, for example, awire, cable, universal serial bus, or any other physical technology toestablish a physical communications link for data processing system 200.The wireless communications link may utilize, for example, shortwave,high frequency, ultra high frequency, microwave, wireless fidelity(Wi-Fi), bluetooth technology, global system for mobile communications(GSM), code division multiple access (CDMA), second-generation (2G),third-generation (3G), fourth-generation (4G), 4G Long Term Evolution(LTE), LTE Advanced, or any other wireless communication technology orstandard to establish a wireless communications link for data processingsystem 200.

Input/output unit 212 allows for the input and output of data with otherdevices that may be connected to data processing system 200. Forexample, input/output unit 212 may provide a connection for user inputthrough a keypad, a keyboard, a mouse, and/or some other suitable inputdevice. Display 214 provides a mechanism to display information to auser and may include touch screen capabilities to allow the user to makeon-screen selections through user interfaces or input data, for example.

Instructions for the operating system, applications, and/or programs maybe located in storage devices 216, which are in communication withprocessor unit 204 through communications fabric 202. In thisillustrative example, the instructions are in a functional form onpersistent storage 208. These instructions may be loaded into memory 206for running by processor unit 204. The processes of the differentembodiments may be performed by processor unit 204 using computerimplemented program instructions, which may be located in a memory, suchas memory 206. These program instructions are referred to as programcode, computer usable program code, or computer readable program codethat may be read and run by a processor in processor unit 204. Theprogram code, in the different embodiments, may be embodied on differentphysical computer readable storage devices, such as memory 206 orpersistent storage 208.

Program code 240 is located in a functional form on computer readablemedia 242 that is selectively removable and may be loaded onto ortransferred to data processing system 200 for running by processor unit204. Program code 240 and computer readable media 242 form computerprogram product 244. In one example, computer readable media 242 may becomputer readable storage media 246 or computer readable signal media248. Computer readable storage media 246 may include, for example, anoptical or magnetic disc that is inserted or placed into a drive orother device that is part of persistent storage 208 for transfer onto astorage device, such as a hard drive, that is part of persistent storage208. Computer readable storage media 246 also may take the form of apersistent storage, such as a hard drive, a thumb drive, or a flashmemory that is connected to data processing system 200. In someinstances, computer readable storage media 246 may not be removable fromdata processing system 200.

Alternatively, program code 240 may be transferred to data processingsystem 200 using computer readable signal media 248. Computer readablesignal media 248 may be, for example, a propagated data signalcontaining program code 240. For example, computer readable signal media248 may be an electro-magnetic signal, an optical signal, and/or anyother suitable type of signal. These signals may be transmitted overcommunication links, such as wireless communication links, an opticalfiber cable, a coaxial cable, a wire, and/or any other suitable type ofcommunications link. In other words, the communications link and/or theconnection may be physical or wireless in the illustrative examples. Thecomputer readable media also may take the form of non-tangible media,such as communication links or wireless transmissions containing theprogram code.

In some illustrative embodiments, program code 240 may be downloadedover a network to persistent storage 208 from another device or dataprocessing system through computer readable signal media 248 for usewithin data processing system 200. For instance, program code stored ina computer readable storage media in a data processing system may bedownloaded over a network from the data processing system to dataprocessing system 200. The data processing system providing program code240 may be a server computer, a client computer, or some other devicecapable of storing and transmitting program code 240.

The different components illustrated for data processing system 200 arenot meant to provide architectural limitations to the manner in whichdifferent embodiments may be implemented. The different illustrativeembodiments may be implemented in a data processing system includingcomponents in addition to, or in place of, those illustrated for dataprocessing system 200. Other components shown in FIG. 2 can be variedfrom the illustrative examples shown. The different embodiments may beimplemented using any hardware device or system capable of executingprogram code. As one example, data processing system 200 may includeorganic components integrated with inorganic components and/or may becomprised entirely of organic components excluding a human being. Forexample, a storage device may be comprised of an organic semiconductor.

As another example, a computer readable storage device in dataprocessing system 200 is any hardware apparatus that may store data.Memory 206, persistent storage 208, and computer readable storage media246 are examples of physical storage devices in a tangible form.

In another example, a bus system may be used to implement communicationsfabric 202 and may be comprised of one or more buses, such as a systembus or an input/output bus. Of course, the bus system may be implementedusing any suitable type of architecture that provides for a transfer ofdata between different components or devices attached to the bus system.Additionally, a communications unit may include one or more devices usedto transmit and receive data, such as a modem or a network adapter.Further, a memory may be, for example, memory 206 or a cache such asfound in an interface and memory controller hub that may be present incommunications fabric 202.

It is understood that although this disclosure includes a detaileddescription on cloud computing, implementation of the teachings recitedherein are not limited to a cloud computing environment. Rather,illustrative embodiments are capable of being implemented in conjunctionwith any other type of computing environment now known or laterdeveloped. Cloud computing is a model of service delivery for enablingconvenient, on-demand network access to a shared pool of configurablecomputing resources, such as, for example, networks, network bandwidth,servers, processing, memory, storage, applications, virtual machines,and services, which can be rapidly provisioned and released with minimalmanagement effort or interaction with a provider of the service. Thiscloud model may include at least five characteristics, at least threeservice models, and at least four deployment models.

The characteristics may include, for example, on-demand self-service,broad network access, resource pooling, rapid elasticity, and measuredservice. On-demand self-service allows a cloud consumer to unilaterallyprovision computing capabilities, such as server time and networkstorage, as needed automatically without requiring human interactionwith the service's provider. Broad network access provides forcapabilities that are available over a network and accessed throughstandard mechanisms that promote use by heterogeneous thin or thickclient platforms, such as, for example, mobile phones, laptops, andpersonal digital assistants. Resource pooling allows the provider'scomputing resources to be pooled to serve multiple consumers using amulti-tenant model, with different physical and virtual resourcesdynamically assigned and reassigned according to demand. There is asense of location independence in that the consumer generally has nocontrol or knowledge over the exact location of the provided resources,but may be able to specify location at a higher level of abstraction,such as, for example, country, state, or data center. Rapid elasticityprovides for capabilities that can be rapidly and elasticallyprovisioned, in some cases automatically, to quickly scale out andrapidly released to quickly scale in. To the consumer, the capabilitiesavailable for provisioning often appear to be unlimited and can bepurchased in any quantity at any time. Measured service allows cloudsystems to automatically control and optimize resource use by leveraginga metering capability at some level of abstraction appropriate to thetype of service, such as, for example, storage, processing, bandwidth,and active user accounts. Resource usage can be monitored, controlled,and reported providing transparency for both the provider and consumerof the utilized service.

Service models may include, for example, Software as a Service (SaaS),Platform as a Service (PaaS), and Infrastructure as a Service (IaaS).Software as a Service is the capability provided to the consumer to usethe provider's applications running on a cloud infrastructure. Theapplications are accessible from various client devices through a thinclient interface, such as a web browser (e.g., web-based e-mail). Theconsumer does not manage or control the underlying cloud infrastructureincluding network, servers, operating systems, storage, or evenindividual application capabilities, with the possible exception oflimited user-specific application configuration settings. Platform as aService is the capability provided to the consumer to deploy onto thecloud infrastructure consumer-created or acquired applications createdusing programming languages and tools supported by the provider. Theconsumer does not manage or control the underlying cloud infrastructureincluding networks, servers, operating systems, or storage, but hascontrol over the deployed applications and possibly application hostingenvironment configurations. Infrastructure as a Service is thecapability provided to the consumer to provision processing, storage,networks, and other fundamental computing resources where the consumeris able to deploy and run arbitrary software, which can includeoperating systems and applications. The consumer does not manage orcontrol the underlying cloud infrastructure, but has control overoperating systems, storage, deployed applications, and possibly limitedcontrol of select networking components, such as, for example, hostfirewalls.

Deployment models may include, for example, a private cloud, communitycloud, public cloud, and hybrid cloud. A private cloud is a cloudinfrastructure operated solely for an organization. The private cloudmay be managed by the organization or a third party and may existon-premises or off-premises. A community cloud is a cloud infrastructureshared by several organizations and supports a specific community thathas shared concerns, such as, for example, mission, securityrequirements, policy, and compliance considerations. The community cloudmay be managed by the organizations or a third party and may existon-premises or off-premises. A public cloud is a cloud infrastructuremade available to the general public or a large industry group and isowned by an organization selling cloud services. A hybrid cloud is acloud infrastructure composed of two or more clouds, such as, forexample, private, community, and public clouds, which remain as uniqueentities, but are bound together by standardized or proprietarytechnology that enables data and application portability, such as, forexample, cloud bursting for load-balancing between clouds.

A cloud computing environment is service oriented with a focus onstatelessness, low coupling, modularity, and semantic interoperability.At the heart of cloud computing is an infrastructure comprising anetwork of interconnected nodes.

With reference now to FIG. 3, a diagram illustrating a cloud computingenvironment is depicted in which illustrative embodiments may beimplemented. In this illustrative example, cloud computing environment300 includes a set of one or more cloud computing nodes 310 with whichlocal computing devices used by cloud consumers, such as, for example,personal digital assistant or a smart phone 320A, desktop computer 320B,laptop computer 320C, and/or automobile computer system 320N, maycommunicate. Cloud computing nodes 310 may be, for example, server 104and server 106 in FIG. 1. Local computing devices 320A-320N may be, forexample, clients 110-114 in FIG. 1.

Cloud computing nodes 310 may communicate with one another and may begrouped physically or virtually into one or more networks, such asprivate, community, public, or hybrid clouds as described hereinabove,or a combination thereof. This allows cloud computing environment 300 tooffer infrastructure, platforms, and/or software as services for which acloud consumer does not need to maintain resources on a local computingdevice, such as local computing devices 320A-320N. It is understood thatthe types of computing devices 320A-320N are intended to be illustrativeonly and that cloud computing nodes 310 and cloud computing environment300 can communicate with any type of computerized device over any typeof network and/or network addressable connection using a web browser,for example.

With reference now to FIG. 4, a diagram illustrating abstraction modellayers is depicted in accordance with an illustrative embodiment. Theset of functional abstraction layers shown in this illustrative examplemay be provided by a cloud computing environment, such as cloudcomputing environment 300 in FIG. 3. It should be understood in advancethat the components, layers, and functions shown in FIG. 4 are intendedto be illustrative only and embodiments of the invention are not limitedthereto. As depicted, the following layers and corresponding functionsare provided.

Abstraction layers of a cloud computing environment 400 includeshardware and software layer 402, virtualization layer 404, managementlayer 406, and workloads layer 408. Hardware and software layer 402includes the hardware and software components of the cloud computingenvironment. The hardware components may include, for example,mainframes 410, RISC (Reduced Instruction Set Computer)architecture-based servers 412, servers 414, blade servers 416, storagedevices 418, and networks and networking components 420. In someillustrative embodiments, software components may include, for example,network application server software 422 and database software 424.

Virtualization layer 404 provides an abstraction layer from which thefollowing examples of virtual entities may be provided: virtual servers426; virtual storage 428; virtual networks 430, including virtualprivate networks; virtual applications and operating systems 432; andvirtual clients 434.

In one example, management layer 406 may provide the functions describedbelow. Resource provisioning 436 provides dynamic procurement ofcomputing resources and other resources, which are utilized to performtasks within the cloud computing environment. Metering and pricing 438provides cost tracking as resources are utilized within the cloudcomputing environment, and billing or invoicing for consumption of theseresources. In one example, these resources may comprise applicationsoftware licenses. Security provides identity verification for cloudconsumers and tasks, as well as protection for data and other resources.User portal 440 provides access to the cloud computing environment forconsumers and system administrators. Service level management 442provides cloud computing resource allocation and management such thatrequired service levels are met. Service level agreement (SLA) planningand fulfillment 444 provides pre-arrangement for, and procurement of,cloud computing resources for which a future requirement is anticipatedin accordance with an SLA.

Workloads layer 408 provides examples of functionality for which thecloud computing environment may be utilized. Example workloads andfunctions, which may be provided by workload layer 408, may includemapping and navigation 446, software development and lifecyclemanagement 448, virtual classroom education delivery 450, data analyticsprocessing 452, transaction processing 454, and automatic generation ofaudit logs corresponding to monitored sensitive data activity events insoftware applications that perform regulated service workloads 456.

In the course of developing illustrative embodiments, it was discoveredthat current approaches to placing audit log statements in applicationsor programs require manual insertion by the software developers whooften lack knowledge of auditing regulations or security best practices.Most software developers write audit log statements as a means fordebugging an application, which do not provide the regulation requiredlevel of information for auditing purposes. By illustrative embodimentsidentifying locations in applications where sensitive data is processed,illustrative embodiments are able to automate the audit log statementplacement process. As a result, software developers only need tocomplete the audit log statements for logging sensitive data activity byincluding domain-specific information. Further, by illustrativeembodiments using dynamic analysis, illustrative embodiments are able toensure that no sensitive data are leaked into generated audit logs.

Automatically generating audit logs for sensitive data activities orevents, which are generated by a distributed application providing aregulated service via network, is a solution to a current problem. Forexample, companies utilize audit logs for monitoring security andcompliance, as well as for forensic analysis. Illustrative embodimentsautomatically determine points or locations within an application whereaudit logs need to be generated to record sensitive data activity. Suchpoints within an application may be, for example, locations where a setof one or more monitored sensitive data activities are performed by adata processing system in response to a user request, locations where achange in execution occur, locations where generation of cryptographickeys occur, locations where user authentication occur, locations wheredecryption of sensitive data occur, locations where encryption ofsensitive data occur, locations where manipulation of sensitive dataoccur, locations where execution of privileged commands occur, and thelike. A privileged command may, for example, provide a systemadministrator privileged access to an application to update thesoftware. However, sensitive data processed by the application may be atrisk during the privileged access to update the software.

Illustrative embodiments may automatically determine the “loggingpoints” in a distributed application, which may be hosted on a cloud,using static analysis and dynamic analysis, for example. Static analysisexamines source code of an application without executing the applicationto identify possible sensitive data vulnerabilities within the static(i.e., non-running) source code. Static analysis may include, forexample, data flow analysis and taint analysis. Data flow analysisexamines the flow of sensitive data through an application. Taintanalysis attempts to identify sensitive data that may have been taintedand traces the tainted sensitive data to possible vulnerable componentsof the application. Static analysis aids illustrative embodiments inidentifying security relevant portions of the application's source code.Dynamic analysis examines source code of the application duringexecution of the application to determine whether the running sourcecode is leaking sensitive data into generated audit logs.

Illustrative embodiments identify common software components that areutilized for multiple sensitive data operations. For example,decryption, which is a common block of code, may be utilized in multiplesensitive data operations. Further, illustrative embodiments maygenerate dependency graphs of monitored sensitive data activity amongthe common software components. Furthermore, illustrative embodimentsmay apply compliance and audit requirements to determine the loggingpoints, frequency of logging, and contents of generated audit logs. Inaddition, illustrative embodiments may make a determination as to whichlogging points may require synchronous logging and which logging pointsmay require asynchronous logging (i.e., sensitive data activity loggingthat does not require time stamp information).

Illustrative embodiments identify a set of hardware and softwarecomponents of a distributed service. The set of components may include,for example, network storage devices, data processing systems that hostthe service, software components of an application that performs theservice, network communication devices, and other entities of theservice that are authorized to access sensitive data associated with theservice, such as medical information regarding an individual. The formsof sensitive data access may include, for example, remote storage of thesensitive data, transmission of the sensitive data via a network,processing of the sensitive data, or temporary local storage of thesensitive data, which is deleted after processing. In addition,illustrative embodiments identify the time and other meta-dataassociated with such authorized sensitive data accesses.

Illustrative embodiments may perform a taint analysis on the distributedservice, which consists of the set of hardware and software components,to determine the flow of sensitive data, sensitive data operations inthe service, and the data processing system or systems hosting theservice. For each software component of the application that performsthe service, illustrative embodiments determine the “points” orlocations, which are part of the data flow and/or control flow withrespect to the taint analysis, where sensitive data operations occurrequiring logging. Illustrative embodiments may generate a flow graphand control flow graph in order to perform a static analysis, such as,for example, a use-definition analysis based on static singleassignment, time slicing based on “taint points” as criteria fordetermining a start and an end of any operation that influences thesensitive data or operation as a whole. A use-definition analysisidentifies a use of a variable and all definitions of that variable thatcan reach that use without any other intervening definitions. As aresult, illustrative embodiments by utilizing use-definition analysisare able to identify and track logical representations of all of thevariables through the source code of the application. Static singleassignment requires that each variable is assigned exactly once andevery variable is defined before it is used.

Illustrative embodiments output all identified audit log statementinsertion points within the application where sensitive data operationsoccur requiring logging, the types of the audit log statement insertionpoints, and content of audit log entries that illustrative embodimentsgenerate. Illustrative embodiments instrument the application with theaudit log statements at the identified audit log statement insertionpoints within the application. Illustrative embodiments then generateaudit log entries using the audit log statements within the application.Further, illustrative embodiments do not record any sensitive data(e.g., confidential or private information regarding an individual)within generated audit log entries. Thus, illustrative embodimentsanalyze source code of an application performing a regulated service ina distributed system in order to instrument the application to logsensitive data events that are specific to security and compliancerequirements, such as, for example, HIPAA compliance.

With reference now to FIG. 5, a diagram of an example audit log manageris depicted in accordance with an illustrative embodiment. Audit logmanager 500 may be implemented in, for example, a network of distributeddata processing systems, such as network data processing system 100 inFIG. 1, in a single data processing system, such as data processingsystem 200 in FIG. 2, or in a cloud computing environment, such as cloudcomputing environment 300 in FIG. 3. Also, audit log manager 500 may be,for example, audit log manager 218 in FIG. 2.

In this example, audit log manager 500 includes source code parsercomponent 502, binary code analysis component 504, static code analysiscomponent 506, dynamic code analysis component 508, and data flowtracking component 510. However, it should be noted that illustrativeembodiments are not limited to such. In other words, audit log manager500 may include more or fewer components than illustrated in alternativeillustrative embodiments. For example, alternative illustrativeembodiments may combine two or more components into a single componentor divide a particular component into two or more components.

Audit log manager 500 utilizes source code parser component 502 to scanand analyze the source code of an application, such as application 220in FIG. 2, which provides a regulated service. Audit log manager 500utilizes binary code analysis component 504 to read and analyze code ofthird party software packages and libraries, which are only available inbinary form. Audit log manager 500 utilizes static code analysiscomponent 506 to perform a static analysis of non-executing source codeof the application to determine sensitive data vulnerabilities incomponents of the application. Audit log manager 500 utilizes dynamiccode analysis component 508 to perform a dynamic analysis of executingsource code of the application to determine whether sensitive data isbeing recorded in generated audit log entries. Audit log manager 500utilizes data flow tracking component 510 to perform a taint analysis onboth static and dynamic instances of the application.

With reference now to FIGS. 6A-6B, a flowchart illustrating a processfor generating audit logs of monitored sensitive data activity events isshown in accordance with an illustrative embodiment. The process shownin FIGS. 6A-6B may be implemented in a computer, such as, for example,server 104 FIG. 1 and data processing system 200 in FIG. 2.

The process begins when the computer receives an application havinglabeled sensitive data and ingestion points within the application whichperforms a regulated service via a network (step 602). The applicationmay be, for example, application 220 in FIG. 2. In addition, thecomputer identifies hardware components of a system hosting theregulated service and software components of the application that areauthorized to access sensitive data located at the labeled sensitivedata and ingestion points within the application (step 604).

Further, the computer performs a taint analysis on workflows trackingthe sensitive data through the hardware components of the system and thesoftware components of the application authorized to access thesensitive data (step 606). Furthermore, the computer determines inputand output sensitive data flow points for each software component of theapplication based on the taint analysis on the workflows tracking thesensitive data (step 608). Moreover, the computer generates a data flowgraph and a control flow graph for the application based on thedetermined input and output sensitive data flow points for each softwarecomponent of the application (step 610).

Afterward, the computer performs a static code analysis on theapplication to generate use-definition chains identifying start and endoperations on the sensitive data in each software component of theapplication using the data flow graph and the control flow graph of theapplication (step 612). Subsequently, the computer identifies audit logstatement insertion points in each software component of the applicationbased on the static code analysis identifying the start and endoperations on the sensitive data in each software component of theapplication (step 614). Then, the computer instruments the applicationwith audit log statements at the identified audit log statementinsertion points in each software component of the application (step616).

The computer generates audit logs of monitored sensitive data activityevents in the application using the audit log statements at theidentified audit log statement insertion points in each softwarecomponent of the application (step 618). It should be noted that thecomputer may generate an audit log for each instance when, for example,sensitive data is read from a file, a socket, or a data storagemiddleware; written to a file, a socket, or a data storage middleware;or passed to a function in a library. The computer also performs adynamic code analysis on the application to ensure that none of thesensitive data flows into the generated audit logs (step 620).

In addition, the computer analyzes the generated audit logs forcompliance with audit requirements (step 622). Afterward, the computermakes a determination as to whether the generated audit logs are incompliance with the audit requirements (step 624). If the computerdetermines that the generated audit logs are in compliance with theaudit requirements, yes output of step 624, then the process returns tostep 618 where the computer continues to generate audit logs. If thecomputer determines that the generated audit logs are not in compliancewith the audit requirements, no output of step 624, then the computerperforms an action step regarding non-compliance of the generated auditlogs with the audit requirements (step 626). One possible action stepmay be for the computer to notify a system administrator of thenon-compliance for possible correction and mitigation of risk to thesensitive data. Another possible action step may be for the computer tostop access to the sensitive data until correction by the systemadministrator can be accomplished. Thereafter, the process terminates.

With reference now to FIG. 7, a flowchart illustrating a process foridentifying sensitive data input and output operations in an applicationperforming a regulated service is shown in accordance with analternative illustrative embodiment. The process shown in FIG. 7 may beimplemented in a computer, such as, for example, server 104 FIG. 1 anddata processing system 200 in FIG. 2.

The process begins when the computer identifies a software packagecorresponding to an application that performs a regulated service via anetwork (step 702). The application and software package may be, forexample, application 220 and software components 236 in FIG. 2. Inaddition, the computer scans code of the software package correspondingto the application to identify linked software packages and libraries tothe application (step 704). The computer may user a parser, such as, forexample, source code parser component 502 in FIG. 5, to scan the code ofthe software package corresponding to the application.

Afterward, the computer makes a determination as to whether all of thelinked software packages and libraries to the application are identified(step 706). If the computer determines that all of the linked softwarepackages and libraries to the application have not been identified, nooutput of step 706, then the process returns to step 704 where thecomputer continues to scan the code of the software packagecorresponding to the application. If the computer determines that all ofthe linked software packages and libraries to the application have beenidentified, yes output of step 706, then the computer identifies allsensitive data input and output operations in the code of the softwarepackage and linked software packages and libraries that processsensitive data corresponding to the regulated service (step 708).Subsequently, the computer generates a graph linking the code of thesoftware package and linked software packages and libraries with all ofthe input and output operations processing the sensitive datacorresponding to the regulated service (step 710). Thereafter, theprocess terminates.

With reference now to FIGS. 8A-8B, a flowchart illustrating a processfor inserting audit log statements is shown in accordance with analternative illustrative embodiment. The process shown in FIGS. 8A-8Bmay be implemented in a computer, such as, for example, server 104 FIG.1 and data processing system 200 in FIG. 2.

The process begins when the computer identifies a set of componentscorresponding to a distributed service (step 802). The computer alsoidentifies a subset of components in the set of components correspondingto the distributed service that are authorized to access a sensitivedata object (step 804). In addition, the computer identifies a trustlevel of each component in the subset of components authorized to accessthe sensitive data object (step 806).

Further, the computer generates a data flow graph, a control flow graph,and a call graph for each component in the subset of componentsauthorized to access the sensitive data object (step 808). Afterward,the computer performs a taint analysis on each component in the subsetof components authorized to access the sensitive data object based onthe data flow graph and the control flow graph to determine a flow ofthe sensitive data object and an operation on the sensitive data objectby each component (step 810). Furthermore, the computer determines adominator tree and a post-dominator tree for each component in thesubset of components authorized to access the sensitive data object(step 812). Moreover, the computer determines an immediate dominatorcomponent and an immediate post-dominator component for each componentin the subset of components authorized to access the sensitive dataobject using the dominator tree and the post-dominator tree for eachcomponent (step 814).

Subsequently, the computer generates a first audit log statement and asecond audit log statement for each component in the subset ofcomponents authorized to access the sensitive data object (step 816).The computer inserts the first audit log statement before a component atthe immediate dominator component and the second audit log statementafter the component at the immediate post-dominator component for eachcomponent in the subset of components authorized to access the sensitivedata object (step 818).

The computer also determines each call that results in a call to anothercomponent for each component in the subset of components authorized toaccess the sensitive data object based on the call graph of eachcomponent (step 820). In addition, the computer generates a third auditlog statement and a fourth audit log statement for each call that makesa call for the sensitive data object from one component having aparticular trust level to another component having a different trustlevel (step 822). Further, the computer inserts the third audit logstatement before the call for the sensitive data object from the onecomponent having the particular trust level to the other componenthaving the different trust level and inserts the fourth audit logstatement after the call (step 824).

The computer also generates a fifth audit log statement and a sixthaudit log statement for each call that makes a call for the sensitivedata object within a same component (step 826). In addition, thecomputer inserts the fifth audit log statement before the call for thesensitive data object within the same component and inserts the sixthaudit log statement after the call (step 828). Thereafter, the processterminates.

With reference now to FIG. 9, a flowchart illustrating a process formonitoring sensitive data input and output events in cryptographicfunctions is shown in accordance with an alternative illustrativeembodiment. The process shown in FIG. 9 may be implemented in acomputer, such as, for example, server 104 FIG. 1 and data processingsystem 200 in FIG. 2.

The process begins when the computer identifies known softwarecryptographic libraries (step 902). The computer also identifies knowncryptographic functions with names of known cryptographic algorithms inthe known software cryptographic libraries (step 904). In addition, thecomputer identifies a software package corresponding to an applicationthat processes sensitive data associated with a regulated service (step906). The application and software package may be, for example,application 220 and software components 236 in FIG. 2.

Afterward, the computer makes a determination as to whether a set of oneor more cryptographic libraries exist in the software packagecorresponding to the application (step 908). If the computer determinesthat no cryptographic libraries exist in the software packagecorresponding to the application, no output of step 908, then theprocess terminates thereafter. If the computer determines that a set ofone or more cryptographic libraries does exist in the software packagecorresponding to the application, yes output of step 908, then thecomputer identifies cryptographic functions in the set of one or morecryptographic libraries identified in the software package that processthe sensitive data (step 910).

Further, the computer monitors all sensitive data input and outputevents in the identified cryptographic functions that process thesensitive data (step 912). Furthermore, the computer generates auditlogs for all the monitored input and output data events of theidentified cryptographic functions that process the sensitive data (step914). Thereafter, the process terminates.

Thus, illustrative embodiments of the present invention provide acomputer-implemented method, computer system, and computer programproduct for automatically generating audit logs of monitored sensitivedata activity events in software applications that perform workloadscorresponding to regulated services. The descriptions of the variousembodiments of the present invention have been presented for purposes ofillustration, but are not intended to be exhaustive or limited to theembodiments disclosed. Many modifications and variations will beapparent to those of ordinary skill in the art without departing fromthe scope and spirit of the described embodiment. The terminology usedherein was chosen to best explain the principles of the embodiment, thepractical application or technical improvement over technologies foundin the marketplace, or to enable others of ordinary skill in the art tounderstand the embodiments disclosed here.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof code, which comprises one or more executable instructions forimplementing the specified logical function(s). It should also be notedthat, in some alternative implementations, the functions noted in theblock may occur out of the order noted in the figures. For example, twoblocks shown in succession may, in fact, be executed substantiallyconcurrently, or the blocks may sometimes be executed in the reverseorder, depending upon the functionality involved. It will also be notedthat each block of the block diagrams and/or flowchart illustration, andcombinations of blocks in the block diagrams and/or flowchartillustration, can be implemented by special purpose hardware-basedsystems that perform the specified functions or acts, or combinations ofspecial purpose hardware and computer instructions.

What is claimed is:
 1. A computer-implemented method for automaticallygenerating audit logs, the computer-implemented method comprising:identifying, by a computer, audit log statement insertion points insoftware components of an application based on a static code analysisidentifying start and end operations on sensitive data in the softwarecomponents of the application; instrumenting, by the computer, theapplication with audit log statements at the audit log statementinsertion points in the software components of the application;generating, by the computer, audit logs of monitored sensitive dataactivity events in the application using the audit log statements at theaudit log statement insertion points in the software components of theapplication; and performing, by the computer, a dynamic code analysis onthe application during execution of the application to prevent executingsource code of the application from recording in the audit logs thesensitive data processed by the application.
 2. The computer-implementedmethod of claim 1 further comprising: analyzing, by the computer, theaudit logs for compliance with audit requirements.
 3. Thecomputer-implemented method of claim 2 further comprising: performing,by the computer, an action step regarding non-compliance of the auditlogs with the audit requirements.
 4. The computer-implemented method ofclaim 1 further comprising: receiving, by the computer, the applicationwith labeled sensitive data and ingestion points within the application,wherein the application performs a regulated service via a network. 5.The computer-implemented method of claim 4 further comprising:identifying, by the computer, hardware components of a system hosting aregulated service and the software components of the application thatare authorized to access the sensitive data located at the labeledsensitive data and ingestion points within the application.
 6. Thecomputer-implemented method of claim 5 further comprising: performing,by the computer, a taint analysis on workflows tracking the sensitivedata through the hardware components and the software componentsauthorized to access the sensitive data.
 7. The computer-implementedmethod of claim 6 further comprising: determining, by the computer,input and output sensitive data flow points for the software componentsof the application based on the taint analysis on the workflows trackingthe sensitive data.
 8. The computer-implemented method of claim 7further comprising: generating, by the computer, a data flow graph and acontrol flow graph for the application based on the input and outputsensitive data flow points for the software components of theapplication.
 9. The computer-implemented method of claim 8 furthercomprising: performing, by the computer, the static code analysis on theapplication to generate use-definition chains identifying start and endoperations on the sensitive data in the software components of theapplication using the data flow graph and the control flow graph of theapplication.
 10. The computer-implemented method of claim 1 furthercomprising: identifying, by the computer, a software packagecorresponding to the application; scanning, by the computer, code of thesoftware package corresponding to the application to identify linkedsoftware packages and libraries to the application; identifying, by thecomputer, sensitive data input and output operations in the code of thesoftware package and linked software packages and libraries that processthe sensitive data; and generating, by the computer, a graph linking thecode of the software package and linked software packages and librarieswith the input and output operations processing the sensitive data. 11.The computer-implemented method of claim 1 further comprising:identifying, by the computer, a trust level of each component authorizedto access the sensitive data.
 12. The computer-implemented method ofclaim 1 further comprising: determining, by the computer, a dominatortree and a post-dominator tree for each component authorized to accessthe sensitive data; determining, by the computer, an immediate dominatorcomponent and an immediate post-dominator component for each componentauthorized to access the sensitive data using the dominator tree and thepost-dominator tree for each component; generating, by the computer, afirst audit log statement and a second audit log statement for eachcomponent authorized to access the sensitive data; and inserting, by thecomputer, the first audit log statement before a component at theimmediate dominator component and the second audit log statement afterthe component at the immediate post-dominator component for eachcomponent authorized to access the sensitive data.
 13. Thecomputer-implemented method of claim 1 further comprising: determining,by the computer, each call that results in a call to another componentfor each component authorized to access the sensitive data based on acall graph of each component; generating, by the computer, a third auditlog statement and a fourth audit log statement for each call that makesa call for the sensitive data from one component having a particulartrust level to another component having a different trust level; andinserting, by the computer, the third audit log statement before thecall for the sensitive data from the one component having the particulartrust level to the other component having the different trust level andinserting the fourth audit log statement after the call.
 14. Thecomputer-implemented method of claim 1 further comprising: generating,by the computer, a fifth audit log statement and a sixth audit logstatement for each call that makes a call for the sensitive data withina same component; and inserting, by the computer, the fifth audit logstatement before the call for the sensitive data within the samecomponent and inserting the sixth audit log statement after the call.15. The computer-implemented method of claim 1 further comprising:identifying, by the computer, a software package corresponding to theapplication; responsive to the computer determining that a set of one ormore cryptographic libraries exist in the software package correspondingto the application, identifying, by the computer, cryptographicfunctions in the set of one or more cryptographic libraries identifiedin the software package that process the sensitive data; monitoring, bythe computer, sensitive data input and output events in thecryptographic functions that process the sensitive data; and generating,by the computer, audit logs for the input and output data events of thecryptographic functions that process the sensitive data.
 16. A computersystem for automatically generating audit logs, the computer systemcomprising: a bus system; a storage device connected to the bus system,wherein the storage device stores program instructions; and a processorconnected to the bus system, wherein the processor executes the programinstructions to: identify audit log statement insertion points insoftware components of an application based on a static code analysisidentifying start and end operations on sensitive data in the softwarecomponents of the application; instrument the application with audit logstatements at the audit log statement insertion points in the softwarecomponents of the application; generate audit logs of monitoredsensitive data activity events in the application using the audit logstatements at the audit log statement insertion points in the softwarecomponents of the application; and perform a dynamic code analysis onthe application during execution of the application to prevent executingsource code of the application from recording in the audit logs thesensitive data processed by the application.
 17. The computer system ofclaim 16, wherein the processor further executes the programinstructions to: analyze the audit logs for compliance with auditrequirements.
 18. The computer system of claim 17, wherein the processorfurther executes the program instructions to: perform an action stepregarding non-compliance of the audit logs with the audit requirements.19. A computer program product for automatically generating audit logs,the computer program product comprising a computer readable storagemedium having program instructions embodied therewith, the programinstructions executable by a computer to cause the computer to perform amethod comprising: identifying, by the computer, audit log statementinsertion points in software components of an application based on astatic code analysis identifying start and end operations on sensitivedata in the software components of the application; instrumenting, bythe computer, the application with audit log statements at the audit logstatement insertion points in the software components of theapplication; generating, by the computer, audit logs of monitoredsensitive data activity events in the application using the audit logstatements at the audit log statement insertion points in the softwarecomponents of the application; and performing, by the computer, adynamic code analysis on the application during execution of theapplication to prevent executing source code of the application fromrecording in the audit logs the sensitive data processed by theapplication.
 20. The computer program product of claim 19 furthercomprising: receiving, by the computer, the application with labeledsensitive data and ingestion points within the application, wherein theapplication performs a regulated service via a network.
 21. The computerprogram product of claim 20 further comprising: identifying, by thecomputer, hardware components of a system hosting a regulated serviceand the software components of the application that are authorized toaccess the sensitive data located at the labeled sensitive data andingestion points within the application.
 22. The computer programproduct of claim 21 further comprising: performing, by the computer, ataint analysis on workflows tracking the sensitive data through thehardware components and the software components authorized to access thesensitive data.
 23. The computer program product of claim 22 furthercomprising: determining, by the computer, input and output sensitivedata flow points for the software components of the application based onthe taint analysis on the workflows tracking the sensitive data.
 24. Thecomputer program product of claim 23 further comprising: generating, bythe computer, a data flow graph and a control flow graph for theapplication based on the input and output sensitive data flow points forthe software components of the application.
 25. The computer programproduct of claim 24 further comprising: performing, by the computer, astatic code analysis on the application to generate use-definitionchains identifying start and end operations on the sensitive data in thesoftware components of the application using the data flow graph and thecontrol flow graph of the application.